package com.juzipi.demo.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;


//资源实体类
@Data
@TableName(value = "resource")
public class Resource {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String url;

    private Resource(){

    }

    private static class ResourceInstance{
        private static final Resource INSTANCE = new Resource();
    }

    public static Resource getInstance(){
        return ResourceInstance.INSTANCE;
    }

}
